package com.fengke.service.impl;

import com.fengke.dao.model.SystemParam;
import com.fengke.dao.systemparam.SystemParamManager;
import com.fengke.service.SystemParamService;

public class SystemParamServiceImpl implements SystemParamService {
	private SystemParamManager systemParamManager;

	@Override
	public SystemParam researchSystemParamByType(SystemParam systemParam) throws Exception {
		if(systemParam == null || systemParam.getType() == null) {
			return null;
		}
		return systemParamManager.researchSystemParamByType(systemParam);
	}
	@Override
	public void updateSystemParamByType(SystemParam systemParam) throws Exception {
		if(systemParam == null || systemParam.getType() == null) {
			return ;
		}
		systemParamManager.updateSystemParamByType(systemParam);
	}

	public SystemParamManager getSystemParamManager() {
		return systemParamManager;
	}
	public void setSystemParamManager(SystemParamManager systemParamManager) {
		this.systemParamManager = systemParamManager;
	}
}
